package cn.ecnu.pojo.personal;

import cn.ecnu.common.Relation;
import cn.ecnu.common.RelationHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.EnumOrdinalTypeHandler;

import javax.validation.constraints.NotNull;

@Data
@TableName(value = "contact"/*,autoResultMap = true*/)
/*维护所有联系人之间的关系 */
public class Contact {
//    @TableId(value = "candidate_id")
    @NotNull(message = "求职者id不能为空")
    private Integer candidateId;

    @NotNull(message = "内推官id不能为空")
    private Integer recommenderId;

//    @TableField(typeHandler = EnumOrdinalTypeHandler.class)
    @NotNull(message = "relation不能为空")
    private Integer relation;
}
